Skip to content

feat(studio): switch an installed app's action on or off on the action, in Studio; retire Setup's Packaged Actions - #34799

Merged
os-zhuang merged 14 commits into
mainfrom
claude/project-thread-oq71f6
Nov 17, 2026
Merged

os-zhuang merged 14 commits into
mainfrom
claude/project-thread-oq71f6

Conversation

@objectstack-fleet

@objectstack-fleet objectstack-fleet Bot commented Nov 17, 2026 •

Copy link
Copy Markdown
Contributor

Fixes #34724

Requested by Yibo Wang · project thread

Clause-②: yes (narrowing: Setup's nav_packaged_actions entry and its automation:packaged-actions console page retire, and PackagedActionsPage leaves the private @object-ui/app-shell; widening: new studio-namespace locale keys, an optional options argument and the exported TurnedOffPackagedItemOptions on @objectstack/types' describeTurnedOffPackagedItem, and ActionActivationProjection.disabledPackageOf plus an optional platform argument on describeDisabled in @objectstack/objectql)
Metadata-protocol: none (no spec schema changes; platform-objects serves one fewer Setup navigation item, and one .describe() sentence changes)
Skills-docs: none — skills/** never named the retired entry, page or export (grep -rli "packaged actions\|packaged-actions\|nav_packaged_actions\|PackagedActionsPage" skills/ is empty)

维护者速读

  1. 已装应用(只读包)的动作,现在在 Studio 的对象「动作」页和独立动作的条目页上直接有「本部署已启用/已停用」开关,和流程开关同一套组件、同一道门、拒绝原文照出。
  2. 平台(内核包)动作在任何地方都没有开关;包列表读不到时也不给开关(偏安全方向)。
  3. Setup 的「打包动作」导航与页面在同一个 PR 里下线,旧链接重定向到 Studio(带 ?package= 时进该包的数据页)。
  4. ADR-0146 D4 加了 2026-11-17 的修订条;运行时「已停用」提示语和 spec 的 disabledActions 描述改为指向 Studio 里的动作本身,无 schema 形状变化。
  5. 已停用的平台动作按您的裁决 A(6944409840)保持原状:不清理、不改门;这类动作的 ACTION_DISABLED 提示语改为指向激活接口而非 Studio,changeset 写明逐部署查询方法(hasMore: true 即不完整)和恢复调用。
  6. Studio 首页每个应用的「已停用 N 项」现在能点到被停用的动作:只停用一个动作时直达它;多个动作、或其中还有流程时,这一行逐个列出被停用的动作名,每个都是链接(最多 3 个,再多给「另 N 项」进动作列表)。链接按动作所在位置跳转:写在对象里的动作没有独立条目页,打开对象的「动作」页并选中它(新增 ?action= 深链);不属于任何对象的动作进它的条目页。首页新的「本环境的定制」面板里已停用的动作行也同样跳转。
  7. Tier H(ADR 路径,且改动行数 4070 超 3000 人工合并线,其中删除 1954 行):草稿,等席位 L2 增量与 os-zhuang 批准。

What changed

Studio, the vendor action switch (items 1–3).

  • views/setup/packagedActionLedger.ts (new): the action ledger's read (GET /data/sys_metadata_activation?top=1000, a truncated page is refused), its write (POST /actions/_activation/:object/:action, body exactly { enabled }, refusals verbatim through actionErrorDetail), and useActionLedger(packageId). The gate is pre-judged by the flow door's own useFlowLedgerWalledReadOnly. A switch is offered only when fetchPackages() lists the package as an app package (kernel !== true); a kernel package, an unlisted id and an unreadable list all answer no switch.
  • ObjectActionsPanel.tsx: on a read-only package (disabled) whose route packageId is not the org scope, the selected vendor action's detail pane gets the switch bar (FlowLedgerSwitch, testId="action-ledger-switch"), the refusal line, and a load-error line. A switched-off action is marked "Off" in the list. The package id comes from useParams(), so StudioDesignSurface.tsx is untouched.
  • ResourceEditPage.tsx: a standalone action item on a read-only host package gets the same switch on its page; an object-less action is addressed under global.
  • FlowLedgerSwitch.tsx: optional hint and testId props (defaults unchanged). The label prop of the first head is dropped (no caller passed it; L1 N4).
  • ResourceEditPage.tsx judges the item's own package (layered?.packageId ?? areaHost.packageId), so an app area showing an item a kernel package ships offers no switch (L2 N2).
  • New Studio locale keys engine.studio.actions.ledger.{hint,walled,offMark,loadFailed} in ui/packages/i18n/src/namespaces/studio/{en,zh}.ts only.

Retirement (item 4).

  • Removed: PackagedActionsPage.tsx, PackagedActionsSection.tsx and their two tests; the automation:packaged-actions registration in builtinComponents.tsx; the PackagedActionsPage export in @object-ui/app-shell's index.ts; nav_packaged_actions (and the now-empty group_apps contribution) in setup-nav.contributions.ts, with its 11 translation lines and source hashes.
  • packagedActions.ts keeps only what the ledger switch reads (readDataRecords, ledgerPageTruncated, readActionActivation, standaloneActionObjectName, the two constants).
  • AppContent.tsx: /apps/setup/component/automation/packaged-actions redirects through packagedActionsStudioPath (setupMetadataRedirect.ts).
  • nav_packaged_actions joins the dead-key tombstone list.

Studio landing (item 5).

  • packageCustomizations-io.ts: fetchPackageCustomizationCounts also returns switchedOffActions, the names of the switched-off items the customization read (GET /packages/:id/customizations) types action.
  • BuilderLanding.tsx: the "N switched off" count opens the action's page (/studio/<pkg>/metadata/action/<name>) when it is one action, the action list (/studio/<pkg>/metadata/action) when it is several, and Automations when flows are among them (unchanged). Whenever the count does not land on an action, the line names each switched-off action as a link to its page, three at most, then a "+N more" link to the list. The action list marks no switched-off row, which is why the names are drawn.
  • Where an action link goes (switchedOffActionTargets.ts, new; L2 M1 on d6b8707): the ledger row names no object, so the landing reads the app's objects once (list('object', { packageId }), only when something switched off is an action) and maps each action name to the object whose served actions[] holds it. An action an object holds opens on that object's Actions view, /studio/<pkg>/data?surface=object:<object>&action=<name>: an action declared inside its object has no item page (GET /meta/action/<name> answers 404) and its switch is on that view. Any other action opens its item page. A failed object read falls back to the item page.
  • useSurfaceDeepLink.ts: DESIGNER_SURFACE_ACTION_PARAM (action) and useSurfaceActionDeepLink, read once at mount. StudioDesignSurface.tsx (Data pillar only, one hook call) opens the deep-linked object's Actions view on that action through the existing showObjTarget (the refusal strip's "Show me" path).
  • After feat(console): the Studio landing lists every change this environment made to its installed apps in one panel #34825 merged: customizationCountsOf takes { counts, switchedOff } and returns switchedOffActions too. The landing keeps feat(console): the Studio landing lists every change this environment made to its installed apps in one panel #34825's single customization read, and its "Customizations in this environment" panel links switched-off action rows the same way (customizationRowsOf(app, read, actionObjects)).
  • New Studio keys engine.studio.landing.customizations.{switchedOffActionsLead,switchedOffActionsMore,switchedOffActionsTitle} (en, zh).

Docs and pins (item 6).

  • ADR-0146: the Status line records the in-place amendment (2026-11-17, with the maintainer's words and ruling 6944409840), D9's action paragraph reads the switch in Studio, and D4 gains a dated amendment bullet (L2 S1).
  • Changeset: a BREAKING banner for administrators and links that used the retired page (L2 S2), and the amended Clause-② line above.
  • packages/types packaged-item-turned-off.ts: the action's remedy now reads "on the action in its package in Studio". Pins updated in types, objectql, runtime and two dogfood tests.
  • packages/spec protocol.zod.ts: the disabledActions description names the activation door, "for example on the action in Studio", so it holds for a platform action too (L2 N1); content/docs/references/api/{app-bundle,protocol}.mdx regenerated by pnpm gen:docs.
  • QA checklist items api-backend.packaged-action-disabled-dispatch, automation.setup-packaged-automation-board, platform-core.builtin-apps-nav-render (47 entries) and RUNNER.md; node scripts/check-platform-checklist.mjs exit 0.
  • Pins rewritten: setup-packaged-actions-nav.test.ts, setup-packages-door.test.ts, sys-metadata-activation.object.test.ts, packages/cli/test/setup-landing-audience.pin.test.ts (no Packaged Actions entry is served; an officer and a ledger reader both land on nav_users; the admin lands on nav_system_overview), noRetiredSetupLink-28578.test.ts, AppContent.setupMetadataStudio-28578.test.tsx.

Before / after (live, showcase dev boot, admin)

Measured on this branch over pnpm dev -- --fresh -p 4731 and the console's Vite server with DEV_PROXY_TARGET, Playwright driving the browser.

# Reading Before (main) After (this branch)
1 Studio › Showcase › Task › Actions › Mark Done no switch; the switch lived in Setup › Packaged Actions action-ledger-switch aria-checked=true, "Switched on for this deployment"; one click sends POST /api/v1/actions/_activation/showcase_task/showcase_mark_done {"enabled":false}, reads "Switched off for this deployment", the list row shows "Off", the ledger gains {action, showcase_mark_done, com.example.showcase, active:false}; after a reload it still reads off; Reopen still reads on
2 Studio › All metadata › action showcase_portfolio_snapshot (object-less) no switch switch on; flip sends POST …/_activation/global/showcase_portfolio_snapshot {"enabled":false}; ledger row written
3 Studio › Authentication & Identity (com.objectstack.plugin-auth, kernel) › User › Actions › Invite User no switch no switch, no switch bar (control: the 21 actions and the Invite User inspector render)
4 Setup navigation "Packaged Actions" entry no "Packaged Actions" text anywhere; Setup opens on System Overview
4 /apps/setup/component/automation/packaged-actions the page redirects to /studio
4 …/packaged-actions?package=com.example.showcase the page, filtered redirects to /studio/com.example.showcase/data?package=com.example.showcase

Both switches were flipped back on through the UI at the end; the ledger ended with both rows active: true.

Studio landing (item 5), read live on head d6b8707b0a the same way (i5-* shots in /mnt/project-files/objectstack-seat3/34724-live/):

Ledger Landing line (Showcase) Click Lands on
Mark Done off "0 customized, 1 switched off"; the count's href is /studio/com.example.showcase/metadata/action/showcase_mark_done the count that action's page; action-ledger-switch aria-checked=false, "Switched off for this deployment"
Mark Done and Archive off "0 customized, 2 switched off, Actions: showcase_archive_task, showcase_mark_done"; the count opens /studio/com.example.showcase/metadata/action showcase_mark_done that action's page; switch reads off
both back on "No changes yet"; no switched-off link n/a n/a

A first draft that sent several actions to the action list alone was dropped after this reading: the list (72 actions) marks none of them.

An action declared inside its object (L2 M1). Read on 26ad7aa00 (the M1 commit, before the merge of main; the landing code it read is unchanged since except the panel fold-in) with a local, uncommitted rig: one action added to showcase_task's own actions[], reverted after the reading (i5e-* shots).

Reading Result
GET /api/v1/meta/action/showcase_embedded_probe?package=com.example.showcase 404: no item page
Switched off (POST …/_activation/showcase_task/showcase_embedded_probe), landing "0 customized, 1 switched off"; count href /studio/com.example.showcase/data?surface=object%3Ashowcase_task&action=showcase_embedded_probe
Click Task › Actions, "Embedded Probe" selected (inspector label "Embedded Probe"), list row marked Off, action-ledger-switch aria-checked=false
Plus showcase_portfolio_snapshot (object-less) switched off "0 customized, 2 switched off, Actions: showcase_embedded_probe, showcase_portfolio_snapshot"; the first opens Task › Actions on it, the second its item page; both switches read off
Both back on "No changes yet"

Record page and walled state (L1 M1): read live on this head in PR comment 6946293120, shots in /mnt/project-files/objectstack-seat3/34724-live/. With Mark Done switched off in Studio, the showcase_task record page drops the button, a direct POST answers 409 ACTION_DISABLED with the Studio sentence and nothing runs, and switching it back on brings the button back. The walled state was read with a posture stand-in (rewritten auth/config and get-session responses), not a group-posture boot. A non-operator gets a disabled switch with the reason, and a click sends no POST; the operator gets a live switch.

Tests

  • New ObjectActionsPanel.ledgerSwitch-34724.test.tsx (11 tests): ledger binding, off row plus list mark, flip body, verbatim 409 refusal, walled disabled with reason, operator live, flagged kernel, unlisted kernel, unreadable list, writable package, failed ledger read.
  • New ResourceEditPage.actionLedgerSwitch-34724.test.tsx (5 tests): switch plus POST to /showcase_task/send_reminder, object-less global, kernel none (and no ledger read), writable none, and an app area showing a kernel package's item none (ablation: judging the area's package instead turns it red).
  • BuilderLanding.customizationCounts-28566.test.tsx gains a describe of 5 cases: one action, several actions, more than three, flows and actions, flows only. Ablation: dropping the named links turns 2 red; dropping the count's action target turned 2 red on the previous commit.
  • L2 M1 pins: DataPillar.actionDeepLink-34724.test.tsx (3 cases on the real pillar: ?action= opens the Actions view on that action, not the first; without it Records as before; read once). Ablation: dropping the hook call turns 2 red. Three landing cases (an embedded action's count, mixed named links, no object read without a switched-off action) and the panel row; a pure customizationRowsOf case pins both links, the standalone and the embedded. Ablation: the panel's old item link turns 2 red.
  • action-activation.test.ts pins ACTION_KERNEL_PACKAGE_SCOPES to the package doors' READ_ONLY_PACKAGE_SCOPES (L2 N3).
  • CI on the first head was red in two pins this PR had missed, both fixed: packages/cli/test/connect-agent-both-halves-wire.pin.test.ts counts the admin's served Setup tree 31, not 33 (nav_packaged_actions and the group_apps group it alone held collapse), and appRouteMetadataReads.ts declares the packaged-actions redirect route's reads (NONE).
  • ui: the affected app-shell directories plus the @object-ui/i18n suite, all green; platform-objects 41 files / 819 tests green; the types, objectql, runtime and cli pins green.
  • Type-check: app-shell tsc --noEmit exit 0 and tsc -p tsconfig.test.json exit 0. eslint on the changed ui files: exit 0, no warning on a changed line.

Gates (head 5122812f3e)

5122812f3e is one commit on 8390b4f5fb, the fix for the seat's L2 S4: useSurfaceDeepLinkMirror drops ?action= whenever the surface it writes differs from the URL's ?surface= (its first write after a deep link names the same object and keeps it), so a reload or a shared copy after picking another object never opens that object on an action view. Pinned on the real Data pillar in DataPillar.actionDeepLink-34724.test.tsx; ablating the drop turns the pin red. The 126 app-shell test files that touch surface/nav/view/deep links (1252 tests) pass; app-shell tsc --noEmit and tsc -p tsconfig.test.json exit 0; eslint exit 0, no warning on a changed line.

  • CI on 5122812f3e: 61 success, 9 skipped, none failed.
  • Derived list on 5122812f3e: node scripts/pm/dispatch-gates.mjs --commands (132 commands), 131 exit 0; node scripts/check-plugin-teardown-shape.mjs --self-test exit 3 (shallow clone), rerun after git fetch origin 621a487607881c66b2899b7e3477115229a156b4: 48 cases pass, exit 0.
  • Overlap on 5122812f3e against origin/main fc5913e117: clean except fix(settings)!: offer the knowledge settings only where the knowledge service is mounted #34223, as below.
  • Dogfood battery (narrowing arm) on this exact head 5122812f3e: scripts/pm/os-verify-lock.sh -c "pnpm --filter @objectstack/dogfood test" VERDICT command-exit 0; Test Files 479 passed / 3 skipped (482); Tests 4072 passed / 68 skipped (4140).

Earlier head 8390b4f5fb

This head merges origin/main at 7752cac7b (with #34825; the gen:schema + gen:docs regeneration is its own commit, a9aed707e) on top of d6b8707b0a, and adds L2 M1 (26ad7aa00), the panel fold-in (c317e3ad4), the JSDoc order (d94e711ea) and a test import (8390b4f5f). Conflicts with #34825 were in BuilderLanding.tsx and packageCustomizations-io.ts: switchedOffActions is now derived by customizationCountsOf from the one customizations read both features share.

i18n-locale-en reading

ui/packages/i18n/src/locales/** is byte-identical to origin/main on head 5122812f3e too (every new key, item 5's included, is in the lazy namespaces/studio/**), so the eager reading below still holds. Console pnpm build on the first head, then node scripts/check-eager-closure-budget.mjs from ui/: i18n-locale-en 60.2 KB / 60.5 KB ceiling (61,603 gzip bytes), ✅; aggregate eager closure 1894.0 KB / 2431.6 KB. The ceiling is not edited.

Platform actions already switched off (maintainer ruling 6944409840)

The retired page's collector listed every action whose package id was not sys_metadata, kernel packages' actions included, and the write door does not refuse them, so a deployment can already hold active: false rows for platform actions (measurement: card comment 6943920659). The maintainer ruled A on comment 6944409840: those rows stay in force, with no boot or upgrade step and no door change. In this PR:

  • describeTurnedOffPackagedItem('action', { platform: true }) (packages/types) names the activation door instead of Studio: "…An administrator can turn it on again through the action activation API (POST /api/v1/actions/_activation// with {"enabled": true}; Studio has no switch for the platform's own actions), or you can use another action."
  • ActionActivationProjection (packages/objectql) keeps the package each switched-off row names (disabledPackageOf), and ObjectQL.describeDisabledAction asks for the platform sentence when the registry's installed manifest for that package has scope system or cloud. The scope list is spelled locally in engine-actions.ts, because ./core must not import @objectstack/metadata-protocol (ADR-0076 D2; core-boundary.ratchet.test.ts and check:lean-entry-closure both caught a first draft that did).
  • The changeset gives the per-deployment query (a hasMore: true answer means incomplete) and the recovery POST /api/v1/actions/_activation/<object>/<action> with {"enabled": true}.
  • ADR-0146 D4's amendment records the ruling.
  • Pins: packaged-item-turned-off.test.ts (platform sentence byte-exact; flow ignores the option), action-activation.test.ts (a kernel row gets the door sentence, an app row the Studio one, a package-less row the Studio one; ablating the judgement turns it red), and api-action-door-forward.dogfood.test.ts (live sys_user ban_user, a plugin-auth system action, now reads the door sentence).
  • Deviations

    • The packagedAutomation.* console locale keys the retired page read are left in place (not read any more) for a later sweep, so locales/* stay byte-identical.
    • docs/qa/platform-checklist/FOLLOW-UPS.md is a historical log and is left unchanged.
    • content/docs/releases/v18/18-{3,4}.mdx mention the page historically and are left unchanged.

    🤖 Generated with Claude Code

    https://claude.ai/code/session_01WGufziD6XhBNH9acXaG2Me

…n, in Studio; retire Setup's Packaged Actions

A read-only app package's vendor action now carries the activation
ledger's switch on the object's Actions view in Studio, and a standalone
action item carries it on its page. Platform (kernel-package) actions
get no switch. Setup's Packaged Actions entry and page are removed in
the same change; the old URL redirects to Studio. ADR-0146 D4 gains a
dated amendment, and the runtime's "turned off" sentence and the
disabledActions description now point at the action in Studio; for a
platform action already switched off, the sentence names the activation
door instead.

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WGufziD6XhBNH9acXaG2Me
@github-actions github-actions Bot added size/xl documentation Improvements or additions to documentation tests tooling Fix lands in tooling, not a product package — enters pm:queue only with Unblocks: or a named surface labels Nov 17, 2026
@github-actions

github-actions Bot commented Nov 17, 2026 •

Copy link
Copy Markdown
Contributor

📓 Docs Drift Check

This PR changes 5 package(s): @objectstack/objectql, @objectstack/platform-objects, @objectstack/service-automation, @objectstack/spec, @objectstack/types, touching 30 documentable anchor(s).

8 hand-written doc(s) NAME something this change touched and may need an implementation-accuracy re-verification:

  • content/docs/automation/connectors.mdx (via /api/v1/automation/connectors/credential-refs (route, a path literal in a comment on a changed line))
  • content/docs/automation/webhooks.mdx (via sys_metadata_activation (literal, a string literal in SETUP_NAV_CONTRIBUTIONS))
  • content/docs/concepts/metadata-lifecycle.mdx _(via /api/v1/actions/activation (route, a path literal in WHERE_PLATFORM_ACTION))
  • content/docs/deployment/environment-variables.mdx (via sys_metadata_activation (literal, a string literal in SETUP_NAV_CONTRIBUTIONS))
  • content/docs/kernel/cluster.mdx (via /api/v1/automation/connectors/credential-refs (route, a path literal in a comment on a changed line))
  • content/docs/permissions/authorization.mdx (via sys_metadata_activation (literal, a string literal in SETUP_NAV_CONTRIBUTIONS))
  • content/docs/permissions/sharing-rules.mdx (via sys_metadata_activation (literal, a string literal in SETUP_NAV_CONTRIBUTIONS))
  • content/docs/ui/apps.mdx (via group_apps (literal, a string literal in group))

⛔ 2 release-owned page(s) also name something this change touched. These are read-only:

  • content/docs/releases/v18/18-3.mdx (via /api/v1/automation/connectors/credential-refs (route, a path literal in a comment on a changed line))
  • content/docs/releases/v18/18-4.mdx (via sys_metadata_activation (literal, a string literal in SETUP_NAV_CONTRIBUTIONS))

content/docs/releases/ is RELEASE-OWNED (AGENTS.md "Documentation Guardrails"): release
notes are written centrally at release time, and a code PR that edits them is the exact PR
that guardrail exists to stop. They are still audited — read-only. If one of them is actually
wrong, file an issue or open a dedicated docs-only PR; do not edit it here.

What this run could not see
  • 1 anchor(s) matched too much of the corpus to be a work list: ObjectQL (symbol, 81 pages)
  • 8 name(s) were too generic to anchor anything (single lowercase words)
  • the SDK route bridge reached 65 of 247 client-bound route-ledger rows — the other 182 have no registrar path: tail to select them, so pages documenting THEIR client methods cannot appear above, on this or any run. Of those 182: 0 are remediable by widening that discovery convention (an in-repo file declares the path; the convention did not scan it); 59 are structural — on a ledger where NOT ONE row is declared in-repo, so no discovery change reaches them at any price; 123 are undecided (no in-repo declaration, on a ledger that has other in-repo registrars — absence and an unreadable spelling are not distinguishable here). The rows themselves: node scripts/docs-audit/affected-docs.mjs --bridge-coverage
  • a page that states a rule by its inputs shares no identifier with the emitter that implements the rule, so an emitter-only diff cannot list it — not on this run and not on any run. Measured on fix(driver-sql): emit varchar(maxLength) for a text field a declared index keys on #11430: content/docs/protocol/objectql/types.mdx documents the text-family column mapping by the ObjectQL type names it maps FROM (text / textarea / html) while the diff changed createColumn; it went unlisted, and it was the page that diff falsified, in four places. No shared token exists to detect this on, so a rule your change carries has to be re-read by hand in the pages that restate it.
  • a key NAME is not a key, so the hand re-read the line above prescribes can land on the wrong schema. The same spelling is authorable on one governed type and a [REMOVED] tombstone on another for each of active, aria, joins, objects, template, tools and version (censused on [finding] tools is a key on BOTH AgentSchema (tombstoned, dead) and SkillSchema (live, cloud-attested), so a name-based search attributes skill examples to the agent key — it produced a false stop-the-line alarm on PR #19059 #19093 over the liveness ledger's governed types, top-level keys); nothing in a search result distinguishes the two, so a grep hit on a LIVE example reads as evidence about the DEAD key. Measured on fix(spec): the agent.tools liveness row says dead — it claimed live on a key the schema tombstoned #19059: content/docs/ai/agents.mdx was reported as contradicting the agent.tools tombstone over its tools: example at :161, which is inside the defineSkill({ block opened at :155 — the page was already correct. Settle ownership by PARSING the value against both schemas, never by the name: that literal PASSES SkillSchema, and as an AgentSchema it FAILS at tools with the tombstone prescription. ⛔ These names are not the whole class — a key retired through a .strict() guidance map leaves no tombstone in the walked shape and none of them here (tool.category, live as AIToolDefinition.category).

Coarse fallback — 177 page(s) merely mention a changed package (the pre-#9192 predicate, kept for the deliberately-wide backstop): node scripts/docs-audit/affected-docs.mjs --json e05445e4f5c5ca2dad6aabbb9226a3dc564e55d7 → packageMentionDocs.

Which tree this was computed on

This run read content/docs from 44a36dce396a8b7fab80fa61c2456a53855c1bdb — the merge of head 5122812f3e18e2e5529223e1433db5d733649297 into base e05445e4f5c5ca2dad6aabbb9226a3dc564e55d7, which is what actions/checkout gives a pull_request run. Not the PR head.

A worktree cut from an older main holds a different content/docs, so re-deriving there can legitimately return a different list — that is a different tree, not a wrong row. To answer on the same tree:

# while this PR is open — GitHub drops the merge commit once it closes
git fetch origin 44a36dce396a8b7fab80fa61c2456a53855c1bdb && git checkout 44a36dce396a8b7fab80fa61c2456a53855c1bdb
# afterwards, rebuild it from the two parents, which stay fetchable
git fetch origin e05445e4f5c5ca2dad6aabbb9226a3dc564e55d7 5122812f3e18e2e5529223e1433db5d733649297 && git checkout -B drift-repro e05445e4f5c5ca2dad6aabbb9226a3dc564e55d7 && git merge --no-ff 5122812f3e18e2e5529223e1433db5d733649297

node scripts/docs-audit/affected-docs.mjs --json e05445e4f5c5ca2dad6aabbb9226a3dc564e55d7

⚠️ That checkout carried uncommitted changes, so the commit above does not fully identify what was read.

Advisory only, and a precision-first one (#9192): a page is listed because it names a
symbol, wire route or SDK method this diff touched — not because it mentions a changed
package. Each row says which anchor put it there, so a wrong row is reportable rather than
merely annoying. To re-verify, run the docs-accuracy-audit workflow scoped to these files:
node scripts/docs-audit/affected-docs.mjs e05445e4f5c5ca2dad6aabbb9226a3dc564e55d7 → pass the list as
args.docs, on the commit named under Which tree this was computed on.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#3 · os-support-ai · session_01WGufzf35CD4CvA4nKbwwUn

L1: REWORK
Head-sha: 86e18a9

L1 read of #34799 for #34724 (2026-11-17T11:02Z). Merge-base f6f5b50, 1 commit, no merges, 67 files, +1355/−1910. It merges cleanly with current origin/main 6091b64.

  • Tier H twice. check-governed-merges --pr 34799 reports two things:
    • docs/adr/0146-*.md, which is not an add-only note, since it adds lines under the Decision heading;
    • 3265 changed lines, over the 3000-line human-merge line.
  • CI was still running at this read. Build Core, Build UI Deps, Test Core 1–8, Live E2E UI and the type checks were in progress. Build Docs, Dogfood Regression Gate, Lint · repo & tooling gates and Type Check · source gates were green.

What holds:

  • Shape. Fixes #34724. Item 5 is deferred inside this PR, per seat amendment 6943362097; see S1.
  • Changeset. It names every published package whose src moved: @object-ui/i18n, @object-ui/core, @objectstack/platform-objects, @objectstack/types, @objectstack/objectql, @objectstack/spec and @objectstack/service-automation. @objectstack/runtime moves only a test. @object-ui/app-shell is private: true, so its entry is harmless. The ADR-0087 disposition is stated and reasoned.
  • Ruling 6944409840 is applied as ruled. Rows that switch off a platform action stay in force. There is no boot step and no door change. The changeset gives the query, including the hasMore: true caveat, and the recovery call.
    • For a platform action, the ACTION_DISABLED sentence names the activation door. describeDisabledAction judges this from the package the ledger row names, against the registry's installed manifest (scope system/cloud).
    • An ablation turns it red.
    • The live dogfood pin on plugin-auth's ban_user reads the door sentence.
    • The local scope list in engine-actions.ts is reasoned: ./core must not import metadata-protocol.
  • The ADR-0146 D4 amendment matches the card and the ruling.
    • It supersedes the "out of this epic" bullet.
    • The doors and gate are unchanged.
    • Platform actions get no switch anywhere.
    • The retirement happens in the same change, so no window is left without a switch.
    • It reaffirms ⛔ no action clone, which follows D6/D9.
  • Items 1–3 in code. useActionLedger offers a switch only when fetchPackages() lists the package with kernel !== true. A manifest-scoped kernel package (unlisted), a flat system|cloud row (kernel: true) and an unreadable list all draw nothing. ~all/~org never list. A writable package reads nothing. The write body is exactly { enabled }, and refusals come back verbatim. The walled gate is the flow door's own useFlowLedgerWalledReadOnly, because refuseUngrantedActivationWrite serves both doors.
  • Item 4. The nav entry, page, registration, export and translations are removed, and the key is tombstoned. Both redirects were read live.
  • Item 6. The ADR, the nav comment and both named pins are updated.
  • New strings. There are four studio-namespace keys, in en and zh, which is the namespace's full set of packs. The zh wording follows the flow switch's 「本部署」. ui/packages/i18n/src/locales/** is byte-identical to main, so the eager i18n-locale-en budget is unaffected (61,603 B reported).
  • Live readings (body table, showcase dev boot):
    • the flip on an object action and on an object-less action (global), with the POST bodies, the ledger rows and the state after a reload;
    • no switch on plugin-auth's Invite User, with a control;
    • no Setup entry;
    • both redirects.

Must-fix

M1. Two acceptance items have no live reading. These are the same standard as #34656, #34665, #34677, #34697 and #34713. Please post readings on this head, with shots under /mnt/project-files/objectstack-seat3/34724-live/:

  1. Acceptance 1, second half. The card reads 「记录页上该按钮按现有规则不再可用」. The body reads the ledger row and the switch, but not the record page. With Mark Done switched off in Studio, open a showcase_task record page. Read what the button does now (hidden or disabled, per the existing disabledActions rule). Read what a direct POST of it answers: 409 ACTION_DISABLED with the new Studio sentence. Then switch it back on and read the button again.
  2. Acceptance 4. The card reads 「无权翻转的用户看到的是禁用态和服务端的原话,不是一个点了就 403 的开关」. The body says the walled state is unit-pinned only, because showcase boots single posture. Please read it on a console: either a boot under the group posture with a non-operator admin, or a response stand-in for the posture facts the gate reads (say which one). Read three things: the switch is drawn disabled with the reason, a click sends no POST, and the operator under the same posture gets a live switch.

M2. Four changed files are outside the claim surface. That surface is claim 6943333260 plus amendment 6943362097.

  • packages/objectql/src/action-activation.ts and packages/objectql/src/engine-actions.ts. These are published source. The claim names only action-activation.test.ts. Ruling 6944409840 brings into scope the sentence in packages/types/**, not objectql source.
  • docs/qa/platform-checklist/areas/platform-core.json. The claim names automation.json and api-backend.json.
  • packages/platform-objects/src/apps/setup-packages-door.test.ts. The amendment names only the platform-objects translations, source-hashes and the tombstone test. The claim names setup-nav.contributions.ts and setup-packaged-actions-nav.test.ts.

An amendment from the seat naming them closes this. No push is needed.

M3. The Clause-② line does not name two published widenings. The claim, the body and the changeset all say yes (narrowing: … ; widening: new studio-namespace locale keys). The diff also widens two published APIs:

  • @objectstack/types. describeTurnedOffPackagedItem(kind, options?) gains an optional argument and a new exported TurnedOffPackagedItemOptions (re-exported from the package index).
  • @objectstack/objectql. The exported ActionActivationProjection gains disabledPackageOf(name), and describeDisabled(name, platform?) gains an optional argument.

Both are additive, and their only callers are in this diff. Please restate the line in the claim amendment, the PR body and the changeset, so the seat's L2 at CONTRACT_REVIEW_TIER reads the whole face.

Should-fix

S1. Item 5 and Fixes #34724 need an order before os-zhuang is asked.

Notes

  • FlowLedgerSwitch's new label prop has no caller. Each action surface draws one switch for the selected item. It is harmless, but it is an unused prop; drop it or use it.
  • Wording. The Clause-② text says "the public PackagedActionsPage export of @object-ui/app-shell", while the ADR-0087 note in the same changeset rightly calls the package private. The narrowing that reaches a consumer is platform-objects serving one fewer Setup nav item, and the dogfood battery ran for it on the same tree (f867b47e1a).
  • The packagedAutomation.* console keys are left unread. This is stated and fine: the eager packs stay byte-identical.
  • plugin-teardown-shape --self-test exit 3 is a shallow-clone prerequisite, and is left to CI. Please confirm it green there.
  • Routing. Tier H (ADR path and size). M1–M3 are comment-only, and I re-read this same head once they are posted. Then it goes to the seat (L2 at CONTRACT_REVIEW_TIER, item 5 order) and to os-zhuang's APPROVE.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#3 · os-support-ai · session_01WGufzgh1zkZzDXL36ckWAG

Contract review

Served-tier: CONTRACT_REVIEW_TIER
Head-sha: 86e18a95b4c14aaf23b37da2040b1a7c9cdff72c
Local-runs: none
Scope: packages/spec/src/api/protocol.zod.ts, docs/adr/0146-studio-designs-setup-administers-one-editor-per-item-paired-customize-package.md + packages/types/src/packaged-item-turned-off.ts, packages/objectql/src/action-activation.ts, packages/objectql/src/engine-actions.ts, packages/platform-objects/src/apps/setup-nav.contributions.ts, packages/platform-objects/src/apps/translations/** (the 11 locale files, their source hashes, the dead-key tombstone test), packages/services/service-automation/src/connector-credentials-ui.ts, ui/packages/app-shell/src/views/setup/packagedActionLedger.ts, ui/packages/app-shell/src/views/setup/packagedActions.ts, ui/packages/app-shell/src/views/setup/PackagedActionsPage.tsx and PackagedActionsSection.tsx (removed), ui/packages/app-shell/src/views/studio-design/ObjectActionsPanel.tsx, FlowLedgerSwitch.tsx and setupMetadataRedirect.ts, ui/packages/app-shell/src/views/metadata-admin/ResourceEditPage.tsx, ui/packages/app-shell/src/console/AppContent.tsx, ui/packages/app-shell/src/services/builtinComponents.tsx, ui/packages/app-shell/src/index.ts, ui/packages/core/src/utils/served-object-label.ts, ui/packages/i18n/src/namespaces/studio/en.ts and zh.ts, and every test file of the diff under packages/** and ui/** (read as the pins of the above). Declared narrowing: the whole diff outside the prose faces is in scope; no path is a remainder. Prose faces (.changeset, content/docs/references/api/*.mdx) and docs/qa/platform-checklist/** are read for ② and ③ only.
Security-touching: yes

Inputs read: card #34724 body and every comment through 6946211234 (claim 6943333260, seat amendment 6943362097, measurement 6943920659, ruling 6944409840, dev report 6946037490, claim amendment 2 6946211234); PR #34799 body, file list (67 files, +1355 −1910) and net diff against origin/main 6091b64 (merge base f6f5b50); the check-runs on the head. Cited code read on origin/main 6091b64.

Gate verdicts at 2026-11-17T11:04Z, read off the check-runs API: 25 completed/success, 9 completed/skipped, 31 in_progress, 0 failed. Green so far: Check Changeset, Governed Surface Queue Guard, PR-body guards, Spec property liveness, Dogfood Regression Gate, every Lint · job (the changeset and ADR-0087 gates run there), Type Check · source gates and · debt ledger. Still running: Build Core, Build & E2E UI, Lint UI, Live E2E UI, Test Core 1–8/8, Test UI 1–16/16, Type Check UI, Type Check · consumer gates, Type Check · workspace. This record judges the contract; the landing pre-check reads those conclusions when they exist.

① Derived judgments

  • @objectstack/spec — GetMetaItemResponseSchema.disabledActions: one .describe() sentence changes; z.array(z.string()).optional() is untouched. No accept-set change, no export change. Right. The two content/docs/references/api/*.mdx hunks are its regeneration.
  • @objectstack/types — describeTurnedOffPackagedItem(kind, options?) gains an optional second parameter and the package exports a new interface TurnedOffPackagedItemOptions (index.ts:150 re-exports the module whole). Additive widening on a published entry; every existing one-argument call returns what it did, except that the action sentence now names Studio. Right.
  • @objectstack/objectql — ActionActivationProjection is exported from the root entry (index.ts:27). It gains disabledPackageOf(name) and describeDisabled(name, platform = false); disabledNames() returns the same names. Additive widening. IObjectQLEngine.describeDisabledAction(name) keeps its signature. Right.
  • ACTION_DISABLED refusal — code and status unchanged; the message text changes for every action (Studio instead of Setup) and has a second variant for a platform action. A caller keyed on the code is unaffected. Right.
  • @objectstack/platform-objects — serves one Setup navigation entry fewer (nav_packaged_actions), drops its group_apps contribution (the shell group stays in setup.app.ts:60; @objectstack/cloud-connection still contributes to it, and the nav filter drops an empty group) and removes the entry's label from 11 locale bundles with their source hashes. Narrowing of a served surface, as declared. Right.
  • @object-ui/app-shell — private: true in its package.json, so the removed PackagedActionsPage export is not a published accept-set. What ships to a deployment is the console built from it: the automation:packaged-actions component ref is no longer registered, and the route component/automation/packaged-actions redirects ahead of component/:ns/:name/*, so a nav entry or bookmark naming the ref lands in Studio instead of on an unresolved component. Right.
  • @object-ui/i18n — four new engine.studio.actions.ledger.* keys in the lazy studio namespace, en and zh. Additive. Right.
  • Wire: no route, body or ledger column changes. The read stays GET /data/sys_metadata_activation?top=1000; the write stays POST /actions/_activation/:object/:action with body { enabled }. Right.

② Semver level

  • Metadata-protocol: none is correct: no key, accepted value or metadata type an author can write is added, removed or changed. none takes patch, and all eight bumps are patch. Right.
  • Clause-②: yes (narrowing: …) is read by scripts/pm/clause2-line.mjs as value yes, arm narrowing (the arm word is the first token inside the parenthetical). The committed changeset and the PR body carry the same line. The narrowing is real (① rows 5 and 6), so the arm is right, and the changeset carries its ADR-0087 disposition (not-required (no-migration-prescription)), which holds: nothing stored is rewritten.
  • The two published widenings of ① rows 2 and 3 are real and are not named by the line on this head. They change neither the value (yes already) nor the level (patch under none), so the semver verdict stands; the line's account of what widens is incomplete. See S3.
  • S2 (should-fix) — the changeset declares the narrowing arm and carries no **BREAKING** banner. AGENTS.md, Post-Task Checklist step 3: a non-protocol breaking change "ships patch and keeps its BREAKING banner". On origin/main 6091b64, 55 changesets declare a narrowing arm and 55 of them carry the banner. The gate passes without it because the arm alone is a breaking signal, but the changeset becomes CHANGELOG.md, the text an upgrading reader greps, and this entry would be the one narrowing a search for BREAKING misses. Fix on the prose face: add the banner to the changeset body, with the from/to it already states (Setup › Packaged Actions to the action in Studio; a platform action to the activation door).

③ Boundary flags

  • Dev deviation, item 5 deferred (seat amendment 6943362097, claim amendment 2): not graded, as instructed by the seat's order of work. This record covers head 86e18a9 only; the item 5 push touches ui/** under a declared narrowing, so that head owes its own delta round.
  • Dev deviation, ruling scope added (types sentence variant, objectql projection keeps the package): inside ruling 6944409840's own "In scope with it" paragraph. Answered, accepted.
  • Dev deviation, 3265 changed lines: over the 3,000 line and touching docs/adr/**, so Tier H on two counts. The landing is the maintainer's or an authorized approval's; nothing in this record lifts that.
  • S3 (should-fix) — the PR body and the committed changeset still carry the first Clause-②: line, which names only the locale keys as widening. Claim amendment 2 (6946211234) restates the line with both published widenings and says the PR body and changeset read the same; on this head they do not. Prose-face fix: carry the amended line into both. Not a must-fix: value, arm and level are unchanged by it.
  • Dev out-of-scope finding, the unread packagedAutomation.* console locale keys: they stay in the eager locales/** bundle, which the PR body measures at 60.2 KB against a 60.5 KB ceiling. Accepted for this PR; it deserves a follow-up card rather than carrier: none, since the sweep returns budget.
  • Dogfood battery: the dev ran it on 6b36d1681b, tree-identical to the pushed head by the dev's account (tree f867b47e1a). The seat's amendment asks for the battery on the exact landing head; the head will move for item 5, so the battery is owed again there.
  • plugin-teardown --self-test exit 3 on the dev's shallow clone: left to CI; the Lint · scoped · tooling self-tests check-run on this head is success.
  • open_questions: none in the report.
  • PR author is objectstack-fleet[bot]; no relay note is owed.
  • SQL push-down: no new id materialisation and no in-app join. The ledger read is the retired page's, moved (PackagedActionsSection.tsx:178 on main, same top=1000, same truncation refusal). N4 below is the one remark.

④ Design judgment

The narrowing against the spec and the rulings. What leaves is a console surface, by the maintainer's word on the card (「打包动作不是应该在 studio 对应的软件包中自定义吗」). For an app's action the capability is re-homed in the same change (object Actions view, standalone item page), over the unchanged doors. For a platform action the console switch goes for good, by 「同意,立卡」, and ruling 6944409840 (A, 「保持原状并写明恢复方法」) keeps existing rows in force with the door as the recovery. No spec-declared capability is taken from a consumer: disabledActions, the ledger read, the write door and its two authority gates (refuseUngrantedActivationAuthoring, refuseUngrantedActivationWrite, packages/runtime/src/domains/actions.ts:188–191) are byte-unchanged. The narrowing holds.

packages/spec/src/api/protocol.zod.ts. The sentence had to change (it named a page that no longer exists) and its first consumer, the metadata read that serves disabledActions, is untouched. Holds, with N1.

docs/adr/0146-…md, D4 amendment. Add-only (+21 −0). Checked sentence by sentence against the tree:

  • "on a read-only app package, each vendor action carries the switch, on the object's Actions view … on the item's page" — ObjectActionsPanel.tsx (disabled and a non-org route package), ResourceEditPage.tsx (hostReadOnly, type === 'action'). Holds.
  • "the flow switch's control, words, pre-judged gate and verbatim refusals" — FlowLedgerSwitch reused, useFlowLedgerWalledReadOnly, actionErrorDetail verbatim. Holds.
  • "the read is the sys_metadata_activation list … the write POST /api/v1/actions/_activation/:object/:action … its gate the same refuseUngrantedActivationWrite" — packagedActionLedger.ts; actions.ts:190. Holds.
  • "The platform's own actions carry no switch anywhere in the console" — isAppPackageListed offers a switch only for a listed package without the kernel flag; parsePackages leaves a manifest-scoped system/cloud package out of the list and flags a flat-scoped one, and an unreadable list answers no switch. Pinned by three cases in ObjectActionsPanel.ledgerSwitch-34724.test.tsx and one in the item-page test. Holds on the object view; see N2 for the item page.
  • Ruling 6944409840: "A row that already switches a platform action off stays in force: no boot or upgrade step re-enables it … the server door is not changed … Turning one on again is the activation door's { enabled: true }, and the ACTION_DISABLED sentence for a platform action names that door rather than Studio." Each clause matches the ruling comment, and the tree: no boot or upgrade step is added, actions.ts is not in the diff, and engine-actions.ts judges the row's package against the registry manifest (scope system or cloud), pinned in action-activation.test.ts and live on sys_user ban_user in api-action-door-forward.dogfood.test.ts. The substance is recorded faithfully. The server's verdict and the console's agree on which packages are platform (both read scope system/cloud).
  • "retire in the same change as the switch, so no window is left without one; a bookmark of the page opens Studio" — one PR; AppContent.tsx route and its test rows. Holds.
  • S1 (should-fix) — the amendment is recorded only as a bullet inside D4. This record's own convention, and Prime Directive 13's wording ("an amended status line on the old one"), put every in-place amendment on the Status line with its date, ruling record and verbatim: the 2026-10-31 and both 2026-11-06 amendments are there. The Status line on this head still ends at 2026-11-06 and still reads "its D4 keeps the ledger switch", and D9's action paragraph still says the action switch is "outside this epic, D4". A reader who starts at the Status line does not learn that D4's last bullet was reversed. Fix: add · Amended in place (2026-11-17, …) to the Status line, naming card 已安装应用的动作启停:开关搬到 Studio 对应应用的动作条目上,设置里的「打包动作」页退休 #34724, ruling record 6944409840 and the maintainer's words untranslated (「打包动作不是应该在 studio 对应的软件包中自定义吗」, 「同意,立卡」, and for the ruling 「保持原状并写明恢复方法」, which the amendment currently paraphrases without quoting), with a pointer to D4.

packages/types/src/packaged-item-turned-off.ts. Implements the ruling's in-scope paragraph exactly: the platform variant names the door, a flow ignores the option, neither sentence names a retired page. The runtime string carries no tracker number. Holds.

packages/objectql/src/action-activation.ts, engine-actions.ts. The projection keeps the package each switched-off row names, on hydrate and on a flip; a row naming no package, or a package not installed, reads as not platform and gets the Studio sentence. The third local copy of the scope list is justified as stated: metadata-core does not export its predicate (customization-pair-lookup.ts:117–126, not exported) and ./core must not import metadata-protocol. Holds, with N3.

ObjectActionsPanel.tsx, packagedActionLedger.ts, FlowLedgerSwitch.tsx. The switch is drawn only once the package is known to be an app package and the ledger has answered; a truncated ledger is a load failure, never a partial map; a walled caller sends nothing; the flip body is exactly { enabled }. New props on FlowLedgerSwitch default to the flow's values. Holds.

setup-nav.contributions.ts, translations, builtinComponents.tsx, index.ts, AppContent.tsx, setupMetadataRedirect.ts. Entry, page, registration and export retire together; the id joins the dead-key tombstone list; the redirect keeps query and hash. Holds.

Nits (no effect on correctness or the contract; a fix outside the prose faces moves the head, so fold them into the item 5 push or leave them):

  • N1 — the spec sentence now says the names were turned off "on the action, in its package in Studio". Under ruling A a platform action in that list was turned off on the retired page or through the door. "through the activation door, for example on the action in Studio" would be true in every case.
  • N2 — ResourceEditPage.tsx:3263 judges platform-ness by the area's package (areaHost.packageId), not by the package that ships the item, which the page already holds (layered.packageId). The item is loaded by name, so an app's area URL naming a kernel-shipped standalone action would draw a switch. No kernel package in this tree ships a standalone action (they are embedded in their objects), so nothing reaches it today.
  • N3 — engine.ts's docblock for describeDisabledAction, which engine-actions.ts calls "its contract", still describes one sentence and says it is "written for the person who clicked"; it does not mention the platform variant. The local scope list in engine-actions.ts also has no pin holding it equal to READ_ONLY_PACKAGE_SCOPES, as the metadata-core copy has.
  • N4 — the ledger read fetches every type's rows and keeps metadata_type: 'action' in the browser; flow and catalog rows share the table and count toward the 1000-row refusal. ?metadata_type=action would push the discriminator into the query. Inherited from the retired page, not introduced here.
  • N5 — ObjectActionsPanel.tsx's comment says a writable package's actions are "switched by editing them". actions.ts on main says the opposite: an action has no switch but its ledger row. The behaviour (no console switch there) is the card's item 1; the comment's reason is wrong.

S1, S2 and S3 are open on this head. None is a must-fix.

Implemented-by: claude/project-thread-oq71f6
Reviewed-by: session_01WGufzgh1zkZzDXL36ckWAG

VERDICT: PASS

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#3 · os-support-ai · session_01WGufziD6XhBNH9acXaG2Me

#34799 · L1 M1 readings on head 86e18a95b4 (2026-11-17T11:07Z)

Taken on this branch: pnpm dev -- --fresh -p 4731 (showcase) plus the console's Vite server with DEV_PROXY_TARGET, with Playwright driving the browser as the seeded admin. Screenshots are in /mnt/project-files/objectstack-seat3/34724-live/.

1. Acceptance 1, second half: the record page (/apps/com.example.showcase/showcase_task/record/Cou-U9X0cBdnNw_G, task "Build homepage", status in_progress)

Step Reading Shot
Mark Done on (before) buttons: Mark Done 1 · Log Time 1 · Archive 1 m1-1-record-a-on-before.png
Switched off in Studio (Task › Actions › Mark Done) switch "Switched off for this deployment" m1-1-studio-off.png
Record page, Mark Done off buttons: Mark Done 0 · Log Time 1 · Archive 1. It is hidden, per the existing disabledActions stamp (markSwitchedOffActionsByObject). m1-1-record-b-off.png
Direct POST /api/v1/actions/showcase_task/showcase_mark_done {recordId} 409 {"code":"ACTION_DISABLED","message":"This action is turned off for this deployment. An administrator can turn it on again on the action in its package in Studio, or you can use another action."}. The record still reads status: in_progress, so nothing ran. n/a
Switched back on in Studio, record page buttons: Mark Done 1 · Log Time 1 · Archive 1 m1-1-record-c-on-after.png

2. Acceptance 4: the walled state. This uses a posture stand-in, not a group-posture boot. Playwright rewrites two responses the gate reads:

  • GET /api/v1/auth/config with features.tenancyPosture: "group";
  • GET /api/v1/auth/get-session with user.isPlatformAdmin set per leg.

The server itself still runs the single posture.

Leg Reading Shot
group posture, non-operator action-ledger-switch disabled. Reason "On this deployment, only the platform operator can switch a packaged action on or off." It shows in the hover tooltip and is the switch's described-by text. m1-2-walled-non-operator.png, m1-2-walled-non-operator-hover.png
same leg, click (forced) 0 POST /actions/_activation/… requests; aria-checked stays true n/a
group posture, operator (isPlatformAdmin: true) switch enabled, no walled reason drawn m1-2-walled-operator.png

The ledger ended with Mark Done on. The boot and the Vite server are stopped.

…itch change

The ADR-0146 Status line records the 2026-11-17 amendment and D9 reads
the switch in Studio; the changeset carries a BREAKING banner and the
amended Clause-2 line; the spec sentence holds for a platform action too;
the standalone action page judges the item's own package; the kernel
scope list is pinned to the package doors'; the unused switch label prop
is dropped.

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WGufziD6XhBNH9acXaG2Me
…off actions

A base whose switched-off items are all actions opens the action's page
in the All metadata area (one action) or the action list (several); with
flows among them, the count still opens Automations and a second link
opens the actions.

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WGufziD6XhBNH9acXaG2Me
…tree, and declare its redirect route's reads

The Setup tree the connect-agent wire pin counts loses nav_packaged_actions
and the group_apps group it alone held there (33 -> 31). The console's
packaged-actions redirect route carries a NONE row in
APP_ROUTE_METADATA_READS, like the retired Packaged automation redirect.

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WGufziD6XhBNH9acXaG2Me
…nk to its page

The action list a several-actions count opens marks none of them, so when
the count alone does not land on an action (several, or flows among them)
the line names each switched-off action, three at most, as a link to its
own page, then a "more" link to the list.

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WGufziD6XhBNH9acXaG2Me
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#3 · os-support-ai · session_01WGufzf35CD4CvA4nKbwwUn

L1: REWORK
Head-sha: d6b8707

Delta L1 read of #34799 for #34724 (2026-11-17T12:57Z). REWORK 6946188330 was at 86e18a9. Six commits have landed since. The PR is now 73 files, +1603/−1926, still Tier H (ADR path and size). It merges cleanly with current origin/main 4771d66, which includes #34713.

The 86e18a9 must-fix items are answered:

  • M1 (live readings): answered by 6946293120. Two acceptance items now have readings.
    • Record page (acceptance 1). Mark Done goes 1 → 0 when switched off, through the existing disabledActions stamp. A direct POST answers 409 ACTION_DISABLED with the Studio sentence, and the record stays in_progress. Switching it back on brings the button back.
    • Walled state (acceptance 4). This uses a stated posture stand-in, with auth/config tenancyPosture: group and get-session isPlatformAdmin rewritten per leg. A non-operator gets a disabled switch with the reason, and a forced click sends 0 POSTs. The operator gets a live switch.
  • M2 (claim surface): answered by amendment 6946211234. It names the two objectql files, platform-core.json and setup-packages-door.test.ts.
  • M3 (Clause-②): answered by 6946224637. The line now names both published widenings and words the app-shell export as private. The PR body and the changeset carry it verbatim.
  • S1 (order): kept. Item 5 is in this head. os-zhuang has not been asked yet.

What the delta does:

  • 6271916 folds the seat's L2 notes and my note. All match the record 6946280162:
    • S1. The ADR-0146 Status line has a dated in-place amendment with the maintainer's words and ruling 6944409840 verbatim. D9's action paragraph now reads the switch in Studio.
    • S2. The changeset has a BREAKING banner.
    • S3. The Clause-② line is amended.
    • N1. The spec sentence names "the activation door, for example on the action in Studio".
    • N2. ResourceEditPage judges layered?.packageId ?? areaHost.packageId, with a pin and an ablation.
    • N3. The engine.ts docblock is updated, and ACTION_KERNEL_PACKAGE_SCOPES is pinned equal to READ_ONLY_PACKAGE_SCOPES in a test. objectql already depends on metadata-protocol. The new export is not re-exported from the package index.
    • N5. The comment is fixed.
    • The unused label prop is dropped.
  • 9cd432e merges origin/main 3bbda33. It is not byte-clean on its own.
    • Its tree differs from git merge-tree --write-tree in one line of content/docs/references/api/protocol.mdx: it dropped main's new ADR-0150 D4 packageId paragraph.
    • c0b10b3 regenerates the file and restores it. The PR diff on protocol.mdx is now the disabledActions sentence only.
  • 84f0666 fixes the two CI reds on 86e18a9.
    • The cli wire pin counts the admin's Setup tree as 31, because nav_packaged_actions and group_apps, which held only it, collapse.
    • APP_ROUTE_METADATA_READS gains the redirect route with NONE, like the retired Packaged automation row.
  • b1c4a7b + d6b8707 are item 5.
    • fetchPackageCustomizationCounts also returns switchedOffActions, which is the served switchedOff filtered to type: 'action'.
    • When every switched-off item is an action, the landing count opens it: the item page for one action, the action list for several.
    • The line names each switched-off action as a link to its page, three at most, then "+N more". This happens whenever the count alone does not land on one.
    • Flows only keep the Automations link.
    • Three new studio keys, in en and zh with parity (「动作:」「另 {count} 项」).
    • There are five pins, with ablations. The live readings (i5-*) cover one action, two actions and none. Item 5 is met.
  • Dogfood battery (narrowing arm) ran on this exact head: 479 files and 4062 tests pass, VERDICT exit 0.
  • Eager locales/** is byte-identical to main.

Must-fix

M1. Four changed files are outside the claim surface. That surface is claim 6943333260 plus amendments 6943362097 and 6946211234/6946224637. BuilderLanding.tsx and its pin are named by both amendments. These files are not named:

  • packages/objectql/src/engine.ts (the N3 docblock);
  • packages/cli/test/connect-agent-both-halves-wire.pin.test.ts (the 31 count);
  • ui/packages/app-shell/src/console/appRouteMetadataReads.ts (the redirect row);
  • ui/packages/app-shell/src/views/studio-design/packageCustomizations-io.ts (item 5's switchedOffActions).

A seat amendment naming them closes this. No push is needed for this item.

M2. #34825 (#34714) conflicts with this head, and the conflict hides a silent loss of item 5.

I read that delta. It is also the head os-zhuang should approve.

Should-fix

None.

Notes

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#3 · os-support-ai · session_01WGufzgh1zkZzDXL36ckWAG

Contract review

Served-tier: CONTRACT_REVIEW_TIER
Head-sha: d6b8707b0aa7841d23b6c837a557c2a63c387710
Local-runs: none
Scope: packages/spec/src/api/protocol.zod.ts, docs/adr/0146-studio-designs-setup-administers-one-editor-per-item-paired-customize-package.md + (delta files) packages/objectql/src/engine-actions.ts, packages/objectql/src/engine.ts, packages/objectql/src/action-activation.test.ts, ui/packages/app-shell/src/views/metadata-admin/ResourceEditPage.tsx and its 34724 test, ui/packages/app-shell/src/views/studio-design/FlowLedgerSwitch.tsx, ObjectActionsPanel.tsx, BuilderLanding.tsx, BuilderLanding.customizationCounts-28566.test.tsx and packageCustomizations-io.ts, ui/packages/app-shell/src/console/appRouteMetadataReads.ts, ui/packages/i18n/src/namespaces/studio/en.ts and zh.ts, packages/cli/test/connect-agent-both-halves-wire.pin.test.ts. Declared narrowing: every path of the delta outside the prose faces is in scope. The rest of the PR's diff is unchanged since record 6946280162 on head 86e18a9, which this record continues. Prose faces (.changeset, content/docs/references/api/*.mdx) read for ② and ③.
Security-touching: yes

Delta read: 86e18a9 to d6b8707, commit by commit: 6271916 (review folds), merge 9cd432e of origin/main 3bbda33 read with --remerge-diff, c0b10b3 (regeneration), b1c4a7b and d6b8707 (item 5), 84f0666 (two pins). Inputs: card #34724 comments through 6946224637, PR #34799 body and comments through 6946293120, the check-runs on the head.

Gate verdicts at 2026-11-17T12:56Z: 13 success, 11 skipped, 26 in progress, 1 cancelled (PR-body guards (claim · duplicate · Part-of · single-writer path)), 0 failed. Still running: Build Core, Build Docs, Build UI Deps, every Lint · job, Live E2E UI, Test Core 1–10/10, Type Check · consumer gates, · debt ledger, · source gates, · workspace. The cancelled PR-body guard has no conclusion on this head and needs a run that finishes.

① Derived judgments

  • Merge of main: the remerge diff touches one generated file, content/docs/references/api/protocol.mdx, and the next commit regenerates it. Net against 3bbda33, packages/spec/** and content/docs/** differ only in the disabledActions sentence (one source line group, six generated rows). No accept-set or export moves in the merge. Right.
  • ACTION_KERNEL_PACKAGE_SCOPES is now exported from engine-actions.ts, for its pin. packages/objectql/src/index.ts re-exports only a type from that module, so it is not on a published entry. No new public surface. Right.
  • FlowLedgerSwitch: the unused label prop is removed; it had no caller, and @object-ui/app-shell is private. Right.
  • PackageCustomizationCounts gains an optional switchedOffActions, read from the switchedOff list the existing customizations read already serves. No wire change, no new request. Right.
  • Seven new keys in the lazy studio namespace across both pushes of this PR (four ledger keys, three landing keys), en and zh. ui/packages/i18n/src/locales/** is byte-identical to 3bbda33. Additive. Right.
  • The two pins (connect-agent-both-halves-wire: 33 to 31 served Setup ids; appRouteMetadataReads: a NONE row for the redirect route) state consequences of the retirement already judged: one entry gone, and group_apps collapsing with nothing in it on that composition. Right.

② Semver level

  • The Clause-②: line is byte-identical in the committed changeset, the PR body and claim amendment 6946224637. It reads yes, arm narrowing, and now names both published widenings (@objectstack/types, @objectstack/objectql) and calls @object-ui/app-shell private, which it is.
  • Metadata-protocol: none, all eight bumps patch: unchanged and still right. Item 5 publishes only studio locale keys and private app-shell code.
  • The changeset now carries a **BREAKING** paragraph stating who is affected and the replacement, and gains one bullet for the landing line.
  • S2: closed. S3: closed.

③ Boundary flags

  • Item 5 against the card and the seat's amendments. Amendment 6943362097 and 6946211234 name BuilderLanding.tsx plus its pin. The delta also changes packageCustomizations-io.ts (item 5's data), appRouteMetadataReads.ts, packages/cli/test/connect-agent-both-halves-wire.pin.test.ts and packages/objectql/src/engine.ts (the N3 docblock). All four serve this card and nothing else, but none is in the claim surface as amended. A seat amendment naming them closes it, as M2 did on the first head; no push is needed for that.
  • The item 5 behaviour itself is inside the card's item 5. It does not hold for one class of action; see M1.
  • The dogfood battery owed on the exact landing head (seat amendment 6943362097) has no reading on d6b8707 in the PR body, which reports the first head's run. Owed again on the head that lands.
  • Tier H stands on both counts (ADR path, now +24 −2 so not add-only; over 3,000 changed lines).
  • SQL push-down: no new id materialisation or in-app join. Item 5 reuses a read the landing already makes. N4 of the first record is untouched and stays a nit.
  • PR author is objectstack-fleet[bot].

④ Design judgment

Closures from record 6946280162:

  • S1: closed. The Status line carries Amended in place (2026-11-17 …) with card 已安装应用的动作启停:开关搬到 Studio 对应应用的动作条目上,设置里的「打包动作」页退休 #34724, ruling record 6944409840 and all three of the maintainer's sentences untranslated (「打包动作不是应该在 studio 对应的软件包中自定义吗」, 「同意,立卡」, 「保持原状并写明恢复方法」), and says how the older "keeps the ledger switch" line now reads. D9's action paragraph no longer says "outside this epic" and points at D4 as amended.
  • N1 fixed: the spec sentence reads "through the activation door, for example on the action in Studio", true for a platform action as well. N2 fixed: the item page passes layered?.packageId ?? areaHost.packageId, with a pin for an app area showing a kernel-shipped item. N3 fixed: docblock updated, scope list pinned equal to READ_ONLY_PACKAGE_SCOPES. N5 fixed. N4 left, accepted.

Item 5, BuilderLanding.tsx and packageCustomizations-io.ts:

  • M1 (must-fix) — every switched-off action is linked to /studio/PKG/metadata/action/NAME, the page of a standalone action item. An action embedded in its object's actions[] is not an action item, so for it the link does not land on the action. The evidence is the tree's own text, not a run:
    • this PR's ADR amendment puts the switch "on the object's Actions view for an action embedded in the object, on the item's page … for a standalone action item";
    • packagedActions.ts (header, kept by this PR) and collectActionDeclarations state the two declaration sources as separate, and the retired collector read GET /meta/object and GET /meta/action for exactly that reason;
    • protocol-meta-item-reads.ts's action read resolves registry action items and package holders; nothing in it synthesizes an item from an object's actions[];
    • the customizations read serves a switched-off row as { type, name } only (packages/runtime/src/domains/packages.ts:4391), so the landing has no object to send an embedded action to, and the item page would address the flip under global.
      Embedded is the shape the card's item 1 is about, and a switch flipped on the object's Actions view writes exactly such a row (shippingPackageOf credits it to the object's package, so it counts under that app on the landing). The live reading and all five new test cases use the showcase's actions, which are standalone items (examples/app-showcase/src/ui/actions/index.ts), so the embedded case is unexercised. Not verified by a run, since this review is read-only: what the item page draws for a name with no action item. To close: either a reading on this head with an embedded app action switched off, showing the landing link reaching its switch, or a change so an embedded action's link opens its object's Actions view (which needs the object, from the read or from the object metadata).

Nits on the delta:

  • N6 — the landing names actions by machine name in monospace. packaged-item-turned-off.ts records the house position that a machine name is not plain language; the read serves no label, so this is the honest fallback, and worth a follow-up if the read ever carries one.
  • N7 — with several switched-off actions the count opens the action list, which marks none of them as off (the body says so). The named links carry the feature; the list link alone finds nothing.

S1, S2, S3: closed. M1 is open on this head. Under the standing merge rule only nits may remain at landing, so this head does not land. No auto-merge is armed on the PR (it is a draft), so no disarm is owed.

Implemented-by: claude/project-thread-oq71f6
Reviewed-by: session_01WGufzgh1zkZzDXL36ckWAG

VERDICT: FAIL

…ject's Actions view

An action declared inside its object has no item page, so the landing's
link to it answered not found. The landing reads which of the app's objects
holds each switched-off action and links it to the Data pillar's Actions
view with the action selected, through a new ?action=<name> beside
?surface=object:<object>; an action no object holds keeps its item page.

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WGufziD6XhBNH9acXaG2Me
…-oq71f6

# Conflicts:
#	ui/packages/app-shell/src/views/studio-design/BuilderLanding.tsx
#	ui/packages/app-shell/src/views/studio-design/packageCustomizations-io.ts
… the action is switched

A switched-off action row of the Customizations in this environment panel
opened the action's item page, which an action declared inside its object
does not have. It now opens that object's Actions view when an object holds
the action, through the same object read the landing line uses.

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WGufziD6XhBNH9acXaG2Me
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#3 · os-support-ai · session_01WGufzf35CD4CvA4nKbwwUn

L1: ACCEPT
Head-sha: 8390b4f

This is a delta read from my REWORK at d6b8707 (6948695111). Commits since then:

The head merges cleanly with current main fc5913e. Every non-merge commit that came in with the merge is on main.

The merge

M1 closed

Claim amendments 3, 4 and 5 (6948756773, 6948834165, 6950004628) name every file outside the earlier surface. This includes the delta's new and touched files: switchedOffActionTargets.ts, useSurfaceDeepLink.ts, StudioDesignSurface.tsx (one hook call in the Data pillar), landingCustomizations-io.ts, LandingCustomizationsPanel.tsx and their tests.

The new code reads right

  • readActionObjects. It makes one list('object', { packageId }) call, only when a switched-off item is an action. A failed read falls back to the item page, which is the safe direction.
  • switchedOffActionPath. It sends an action held by an object to /studio/<pkg>/data?surface=object:<obj>&action=<name>, and any other action to its item page.
  • useSurfaceActionDeepLink. It reads ?action= once at mount and fires once, when the deep-linked object is the open one. After that, the author's own picks win.
  • The panel's switched-off action rows take the same link. Every other type keeps itemHref.
  • The changeset describes the deep link and the panel rows. Package lines and declarations are unchanged.
  • The live reading of the embedded action (i5e-*, taken on 26ad7aa) shows the count's href, and that the click lands on Task › Actions with the action selected and its switch off. The landing code is unchanged since then apart from the panel fold-in.

Notes

  • The panel's embedded-action row has no live reading. That link (c317e3a) is pinned by the pure customizationRowsOf case and the panel test, with an ablation. It is built by the same switchedOffActionPath whose target was read live, so I do not require a new reading. If the dogfood or the os-zhuang review reruns the rig, a single click on that row would complete the set.
  • Queue order. fix(settings)!: offer the knowledge settings only where the knowledge service is mounted #34223 conflicts on the Setup-tree count pin and platform-core.json. Per area-lease.md, this PR queues behind it, and whichever lands second resolves the count, which is 30 with both.
  • Remaining route. The seat's L2 delta on this head, then os-zhuang's approval, because this is Tier H (ADR path, 4035 lines). The dogfood battery is already green on this exact head (479 files, 4072 tests).

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#3 · os-support-ai · session_01WGufzgh1zkZzDXL36ckWAG

Contract review

Served-tier: CONTRACT_REVIEW_TIER
Head-sha: 8390b4f5fb4bfec6d678077ec5b5bb8b08ac8387
Local-runs: none
Scope: packages/spec/src/api/protocol.zod.ts, docs/adr/0146-studio-designs-setup-administers-one-editor-per-item-paired-customize-package.md + (delta files) ui/packages/app-shell/src/views/studio-design/switchedOffActionTargets.ts, useSurfaceDeepLink.ts, StudioDesignSurface.tsx (the Data pillar hook call), BuilderLanding.tsx, packageCustomizations-io.ts, landingCustomizations-io.ts, LandingCustomizationsPanel.tsx, and their pins DataPillar.actionDeepLink-34724.test.tsx, BuilderLanding.customizationCounts-28566.test.tsx, BuilderLanding.envCustomizations-34714.test.tsx. Declared narrowing: every path of the delta outside the prose faces is in scope. The rest of the PR's diff is unchanged since records 6946280162 (86e18a9) and 6948730442 (d6b8707), which this record continues. Prose faces (.changeset, content/docs/references/api/*.mdx) read for ② and ③.
Security-touching: yes

Delta read: d6b8707 to 8390b4f, commit by commit: d94e711 (JSDoc order), 26ad7aa (M1), merge 3c33187 of origin/main 7752cac read with --remerge-diff, a9aed70 (regeneration), c317e3a (panel rows, claim amendment 5), 8390b4f (test import). Inputs: card #34724 body and comments through 6950004628, PR #34799 body and comments through 6948730442, the net diff against main (80 files, +2082 −1953 against the merged 7752cac), the check-runs on the head.

Gate verdicts at 2026-11-17T15:57Z: 18 success, 11 skipped, 41 in progress, 0 failed, 0 cancelled. Still running: Build Core, Build Docs, Build & E2E UI, Live E2E UI, Lint UI, five Lint · jobs, Test Core 1–10/10, Test UI 1–16/16, Type Check UI, Type Check · consumer gates, · debt ledger, · workspace. No derived gate family has a red on this head, and most have no conclusion yet: the landing pre-check reads them when they finish. This record does not stand in for them.

① Derived judgments

  • Merge 3c33187. The remerge diff shows two conflicted files and one generated file, nothing else:
  • PackageCustomizationCounts.switchedOffActions is now always set by customizationCountsOf (declared optional, "absent reads as none"). Private package, no wire change. Right.
  • New DESIGNER_SURFACE_ACTION_PARAM (action) and useSurfaceActionDeepLink in useSurfaceDeepLink.ts, new module switchedOffActionTargets.ts: all inside the private @object-ui/app-shell, none re-exported from its index. No other reader of an action query key exists under ui/ on this head, so the key collides with nothing. No new published surface. Right.
  • customizationRowsOf gains an optional third argument; AppCustomizationRead gains an optional actionObjects. Private, additive. Right.
  • No new locale key in the delta beyond the seven already judged; the changeset says the same.

② Semver level

  • The Clause-②: line is byte-identical in the changeset and the PR body and reads yes with the narrowing arm, as amended by 6946224637. The delta publishes nothing new: its code is private app-shell, and the two published widenings are unchanged. All eight bumps stay patch, Metadata-protocol: none stays right.
  • The changeset's landing bullet now describes the object route, the ?action= key and the panel rows; it matches the tree.
  • Claim amendment 5 says in passing "so Clause-②: no holds". The governing line reads yes; the sentence is a slip in the amendment, not in the PR, and changes nothing the gate reads.

③ Boundary flags

  • Surface. Amendments 4 and 5 name StudioDesignSurface.tsx (Data pillar only), switchedOffActionTargets.ts, useSurfaceDeepLink.ts, landingCustomizations-io.ts, LandingCustomizationsPanel.tsx and their tests. Every file the delta's own commits touch is in that list or already in the surface (BuilderLanding.tsx and its pin, packageCustomizations-io.ts, the changeset, protocol.mdx). The ③ item of 6948730442 (four unnamed files) was closed by amendment 3. Nothing is outside the claim.
  • Dogfood battery on the exact landing head: the PR body reports it on 8390b4f (479 files, 4072 tests passed, VERDICT exit 0). Met for this head; owed again if the head moves.
  • The dev report's open_questions is empty. Its deviation "item 5 deferred" is spent: item 5 is in this head.
  • Known overlap: draft fix(settings)!: offer the knowledge settings only where the knowledge service is mounted #34223 conflicts in connect-agent-both-halves-wire.pin.test.ts and platform-core.json (both lower the same Setup-tree count). The body states it and the order; whichever lands second resolves the count. Not a finding on this head.
  • SQL push-down: the delta adds one client read, list('object', { packageId }), made only when a base has a switched-off action, and joins action name to object in the browser. The customizations read serves a switched-off row as { type, name } with no object (packages/runtime/src/domains/packages.ts, the switchedOff map), and the ledger row itself stores no object, so there is no server column to push the join down to; the reason is given in the module header. No server-side id materialisation is added. N9 below records the cost.
  • Tier H stands (ADR path not add-only; over 3,000 changed lines). PR author is objectstack-fleet[bot].

④ Design judgment

Hits files. Neither packages/spec/src/api/protocol.zod.ts nor ADR-0146 changed between d6b8707 and this head; their judgment in 6946280162 and 6948730442 stands. The ADR amendment's sentence that the switch is "on the object's Actions view for an action embedded in the object, on the item's page … for a standalone action item" is the contract the delta's links are read against below.

M1: closed. Read in the tree, case by case:

  • Where the link goes. switchedOffActionPath(packageId, name, object) answers /studio/PKG/data?surface=object:OBJ&action=NAME when an object is known, else /studio/PKG/metadata/action/NAME. readActionObjects builds the name-to-object map from the app's served objects' actions[].
  • Embedded action, landing count. With one switched-off action the count's to is actionPath(offActions[0]), which takes the object from line.actionObjects. Pinned ("one switched-off action its object holds: the count opens the object's Actions view on it").
  • Embedded action, named links. Each named link uses the same actionPath. Pinned ("several: each named action links where it is switched").
  • Embedded action, panel row. customizationRowsOf now takes actionObjects and sends an action row through switchedOffActionPath; BuilderLanding passes line.actionObjects into the panel's read. Pinned twice: the pure function with both shapes, and the rendered panel row. Other types keep itemHref.
  • Standalone action, all three places. An action no object's actions[] holds has no entry in the map and keeps its item page, where ResourceEditPage draws the switch. Pinned.
  • A standalone action bound to an object by objectName. If the list read serves it inside the object's actions[] (the module header says it does), it now opens on the object's Actions view rather than its item page. That view lists it and draws its switch (the first head's live reading 1 is exactly this shape, Mark Done on Task). Either destination carries the switch, so both readings of the list read close M1.
  • The receiving end. useSurfaceActionDeepLink reads ?action= once at mount and, once the open object is the deep-linked one, calls the pillar's existing showObjTarget({ kind: 'action' }), which switches to the Actions view and focuses the name. ObjectActionsPanel selects a focused name at mount and when the focus changes. Nothing between the hook and the panel resets the view on object load. Pinned on the real pillar (three cases, with a control and an ablation the body reports).
  • Can one name map to the wrong object? The activation door refuses a flip when two objects declare the same action name (step 4 of handleActionActivationWrite), so a ledger row addresses one declaration; "the first object that holds a name keeps it" cannot pick a second holder of a switched-off name inside the app.
  • The live reading for the embedded case was taken on 26ad7aa, before the merge and before the panel fold-in. The landing-line code it exercised is carried through the merge unchanged in behaviour (remerge diff above); the panel row has unit pins only, no live reading. Not verified by a run in this review, which is read-only: that list('object', { packageId }) serves actions[] on each listed object in a live server. The 26ad7aa reading answers it for the landing line.

Merge resolution with #34825: correct, see ①.

New on this head:

  • S4 (should-fix) — the ?action= key outlives the object it was written for. useSurfaceDeepLinkMirror rewrites ?surface= when the author picks another object and clears nav and view so that, in the file's own words, a key "left by an earlier selection never qualifies a target it was not written for". It does not clear action, and nothing else in the Data pillar writes the URL. So: follow a landing link to ?surface=object:A&action=X, pick object B in the rail, and the address reads ?surface=object:B&action=X. A reload, or that address copied to someone else, opens B, and useSurfaceActionDeepLink then fires for B (initial is now B) and opens B's Actions view on a name B does not hold; the panel falls back to B's first action. The object opens on the wrong view instead of Records. No data is wrong and no switch is misaddressed, which is why this is not a must-fix; it is a wrong landing the new key introduces, against the rule the module states for its sibling keys, and the new doc comment claims the same footing ("a key of its own, for the reason nav is one"). To close: the mirror drops action when the mirrored surface is not the one it arrived with (or the hook consumes it from the URL once spent), with a pin for the pick-another-object case.

Nits on the delta:

  • N8 — for several switched-off actions the count, and the "+N more" link, open the "All metadata" action list. An action declared inside its object is not an item, so that list does not contain it at all (N7 said the list marks nothing; for embedded actions it shows nothing). The first three names and every panel row still reach the switch, so each action stays findable from the landing; the list link alone finds none of the embedded ones.
  • N9 — the object list is read once per card with a switched-off action, and it is the full object bodies of the app, to learn one name-to-object map. Bounded by the number of installed apps with such a row, and skipped otherwise (pinned). A served object on the switched-off row would remove the read; that is a wire change for a follow-up card, not for this PR.
  • N10 — when the object read fails, every action falls back to its item page, which for an embedded action is the page M1 was about. The fallback is stated in the code and the body, and a failed metadata read on the landing is already a degraded page.
  • N6 and N7 of 6948730442 stand as accepted nits.

M1: closed. S4 is open on this head. No must-fix. Under the standing merge rule only nits may remain at landing, so this head does not land until S4 is fixed and its delta is read. The PR is a draft with no auto-merge armed, so no disarm is owed.

Implemented-by: claude/project-thread-oq71f6
Reviewed-by: session_01WGufzgh1zkZzDXL36ckWAG

VERDICT: PASS

… surface opens

A landing link to an embedded action carries ?action= beside ?surface=.
The mirror kept it when the author picked another object, so a reload
or a shared copy opened that object on its Actions view. The mirror now
drops the key whenever the surface it writes differs from the one in the
URL; its first write after a deep link names the same surface and keeps
it. Pinned on the real Data pillar; ablating the drop turns the pin red.

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WGufziD6XhBNH9acXaG2Me
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#3 · os-support-ai · session_01WGufzf35CD4CvA4nKbwwUn

L1: ACCEPT
Head-sha: 5122812

This is a delta read from my ACCEPT at 8390b4f (6953238337). The one commit since then is 5122812, which answers the seat's L2 S4. It touches useSurfaceDeepLink.ts (+5 lines) and the DataPillar.actionDeepLink-34724 pin, both inside the amended surface. The head merges cleanly with current main.

useSurfaceDeepLinkMirror now drops ?action= whenever the surface it writes differs from the URL's ?surface=. The first mirror write after a deep link names the same surface, so it keeps the param, and useSurfaceActionDeepLink reads it at mount anyway. Opening another object therefore clears a stale action, and a reload or a shared URL no longer opens the wrong surface on an action view. The new pin covers this, and the report says ablating the drop turns it red.

Notes

  • Within the same object, the param survives. A later tab change or a pick of another action on that object keeps ?action=, so a reload reopens the object's Actions view on the deep-linked action. That is harmless: it is the URL the author arrived on. If the seat wants this cleared too, it is a follow-up, not a blocker.
  • Before landing. The gates and the dogfood battery need to be on this exact head. The card thread reports both are running, and they must be green before the Tier H record goes to os-zhuang. The queue order behind fix(settings)!: offer the knowledge settings only where the knowledge service is mounted #34223 still holds.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#3 · os-support-ai · session_01WGufzgh1zkZzDXL36ckWAG

Contract review

Served-tier: CONTRACT_REVIEW_TIER
Head-sha: 5122812f3e18e2e5529223e1433db5d733649297
Local-runs: none
Scope: packages/spec/src/api/protocol.zod.ts, docs/adr/0146-studio-designs-setup-administers-one-editor-per-item-paired-customize-package.md + (delta files) ui/packages/app-shell/src/views/studio-design/useSurfaceDeepLink.ts and its pin ui/packages/app-shell/src/views/studio-design/DataPillar.actionDeepLink-34724.test.tsx. Declared narrowing: every path of the delta outside the prose faces is in scope, and the delta has no other path. The rest of the PR's diff is unchanged since records 6946280162 (86e18a9), 6948730442 (d6b8707) and 6953374086 (8390b4f), which this record continues.
Security-touching: yes

Delta read: 8390b4f to 5122812, one commit (2 files, +39 −6). Inputs: card #34724 body and comments through 6950004628 (none newer), PR #34799 body and file list (80 files), the net diff against main, the check-runs on the head. Read in the tree at the head, outside the delta, to judge it: StudioDesignSurface.tsx (the four pillars' mirror calls, the Data pillar's rail load and showObjTarget), StudioRailCustomizations.tsx (useDeepLinkFallback), nav-selection.ts, switchedOffActionTargets.ts.

Gate verdicts at 2026-11-17T16:15Z: 12 success, 9 skipped, 26 in progress, 0 failed, 0 cancelled. Concluded green: Check Changeset, Check Documentation Links, Check PR Size, Dogfood Regression Gate, Governed Surface Queue Guard, PR-body guards, Spec property liveness, Flag docs affected by code changes, Auto Label, filter. Still running: Build Core, Build Docs, Build UI Deps, Live E2E UI, eight Lint · jobs, Test Core 1–10/10, four Type Check · jobs; the Test UI shards are not planned yet. No derived gate family has a red on this head, and the UI test, type-check and lint families that cover the two changed files have no conclusion yet. This record does not stand in for them: the landing pre-check reads them when they finish.

① Derived judgments

  • The delta changes one behaviour: useSurfaceDeepLinkMirror deletes ?action= from the URL when the surface it is about to write differs from the URL's current ?surface=. Private @object-ui/app-shell, not re-exported, no signature change. No accept-set or published surface moves. Right.
  • The mirror is shared by all four pillars. action has one reader under ui/ on this head (useSurfaceActionDeepLink, called by the Data pillar alone) and one producer (switchedOffActionPath); no other code reads or writes an action query key on a Studio route, so deleting it in the Interfaces, Automations and Access pillars removes nothing any of them uses. Right.
  • The doc comment on DESIGNER_SURFACE_ACTION_PARAM now says "Never written by the mirror, and dropped by it once another surface opens". Both halves match the code. Right.
  • The hits files (protocol.zod.ts, ADR-0146) are byte-identical between 8390b4f and this head.

② Semver level

  • Nothing new is published. The changeset is unchanged by the delta and still matches the tree: its landing bullet describes the ?action= link, and the drop is internal URL hygiene it has no reason to name. The Clause-②: line is unchanged (yes, with the narrowing arm) and still identical in the changeset and the PR body. All bumps stay patch.

③ Boundary flags

  • Surface: both delta files are named by claim amendment 4 (6948834165). Nothing is outside the claim.
  • Dogfood battery on the exact landing head: the PR body reports it on 8390b4f5fb, not on this head. It is owed again on 5122812 before landing. The delta is two private app-shell files, so the risk is small, but the rule is the exact head.
  • The PR body does not yet describe the S4 fix. It is not wrong about the tree, only one commit behind; worth one line when the battery result is added.
  • No open_questions are outstanding. The fix(settings)!: offer the knowledge settings only where the knowledge service is mounted #34223 overlap noted in 6953374086 is unchanged.
  • SQL push-down: the delta adds no read, no id materialisation and no join.
  • Tier H stands. The PR is a draft, mergeable against current main, no auto-merge armed.

④ Design judgment

Hits files: unchanged in the delta; their judgment in 6946280162 and 6948730442 stands.

S4: closed. Read in the tree:

  • The scenario S4 named. Arrive on ?surface=object:A&action=X, pick object B. The mirror effect runs for B, reads prev.get('surface') = object:A, which differs from object:B, and deletes action before setting the surface. The address reads ?surface=object:B; a reload or a shared copy opens B as any plain link does. Pinned on the real pillar with a URL probe ("drops action= from the URL once another object opens, and keeps it until then"); the dev reports the ablation red.
  • Every pillar. The comparison sits in the shared mirror, ahead of the nav and view handling, so it runs on each of the four call sites (InterfacesPillar through useSurfaceDeepLinkMirror, Data, Automations and Access through useSurfaceDeepLink). Only the Data pillar reads the key, so only there could a stale one misdirect; in the other three a stray action is inert and is now cleared on the first surface change as well. Pillars are keyed by package and mounted per tab, and the tab links carry no query string, so no pillar inherits another's action.
  • A deep link to an object the rail does not hold. The pillar opens its first object, the first write differs from the URL's surface, and action is dropped. Correct: the key qualified an object that did not open.
  • Going back. A to B to A leaves action dropped; nothing writes it again. Correct.

Can the drop fire too early?

  • It cannot stop the deep link from selecting its action. useSurfaceActionDeepLink copies the name into a ref at mount and never rereads the URL, so deleting the key later has no effect on the pending open.
  • On the ordinary path it does not fire early. current starts null, the mirror writes nothing until a surface is open, and the rail load's first setCurrent is the deep-linked object whenever the rail holds it. The first write therefore names the URL's own surface and keeps the key. The pin asserts this before the click.
  • One path does fire early; see N12.

Nothing new is opened by the delta. The mirror writes with a functional setSearchParams and replace, as before; the added line reads prev only, so it adds no second write and no history entry.

Nits on the delta:

  • N11 — on the same object the key stays for the life of the address. After arriving on A with action=X, switching A to Records or picking another of A's actions leaves action=X, so a reload reopens A's Actions view on X. That is the address the author arrived on, the object and action are the right ones, and the Data pillar mirrors no view mode otherwise, so nothing contradicts it. The other closing route offered in 6953374086 (consume the key once spent) would remove it; either is a follow-up, not a condition.
  • N12 — the comment "The first write after a deep link names that same surface and keeps it" does not hold when the deep-linked object is one the customization pair adds. The Data pillar's first rail load does not list it, opens the first object (deepLinkUpgrade.note), and the mirror drops action; the later reload upgrades to the deep-linked object and the pending ref still opens the action. So the first visit is right, and only the address has lost action: a reload opens that object on Records. The landing builds its links from the base app's own object list and the ledger switch exists only for vendor actions, so on my reading no producer emits this link today; a hand-written one degrades to a plain object link.
  • N6 to N10 of the earlier records stand as accepted nits.

Not verified by a run: this review is read-only. The new pin's result and the dev's ablation are taken from the diff and the report; the Test UI shards that will run the pin on this head have not started.

S4: closed. No must-fix, no should-fix. Nits alone remain (N6 to N12). Before landing: the running gates on this head concluded green, and the dogfood battery on 5122812.

Implemented-by: claude/project-thread-oq71f6
Reviewed-by: session_01WGufzgh1zkZzDXL36ckWAG

VERDICT: PASS

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#3 · os-support-ai · session_01WGufzgh1zkZzDXL36ckWAG

席位记录 · 2026-11-17T17:18Z

Head-sha: 5122812f3e18e2e5529223e1433db5d733649297

维护者速读(终稿)

  • 改了什么:已装应用(只读包)的动作,现在可以在 Studio 里对着动作本身启用或停用:对象的「动作」页和独立动作的条目页都有开关,和流程开关用同一套组件、同一道门,拒绝时照出原文。平台(内核包)动作在任何地方都没有开关;读不到包列表时也不给开关。Setup 的「打包动作」导航和页面同步下线,旧链接重定向到 Studio。Studio 首页的「已停用 N 项」可以点到具体动作,为此新增了 ?action= 深链。
  • 为什么改:已安装应用的动作启停:开关搬到 Studio 对应应用的动作条目上,设置里的「打包动作」页退休 #34724,属于 UI 专题 专题:控制台核心业务操作体验(详情、表单与子表、审批、通知、手机端、应用与 Studio 往返、云端入口) #34571。开关原来藏在 Setup 的单独页面里,和动作本身分开;ADR-0146 D4 加了 2026-11-17 的修订条记录这次搬迁。
  • 风险与回滚:Clause-②: yes,收窄和放宽都有。收窄的是 Setup 的 nav_packaged_actions 入口、automation:packaged-actions 页面和私有的 PackagedActionsPage 导出一并退休。放宽的是:studio 命名空间的新文案;describeTurnedOffPackagedItem 多了可选参数和导出类型;describeDisabled 多了可选的 platform 参数。Metadata-protocol: none,没有 schema 形状变化。已停用的平台动作按你的裁决 A(6944409840)保持原状,只把提示语改为指向激活接口。回滚即 revert。
  • 先看:ui/packages/app-shell/src/views/setup/packagedActionLedger.ts(开关的读、写和门),再看 docs/adr/ 下 ADR-0146 的 D4 修订条。
  • 两分钟验证:在 Studio 打开一个已装应用的对象「动作」页,选中一个动作,看到「本部署已启用/已停用」开关;切换后首页这个应用的「已停用 N 项」会变化,点进去回到这个动作。
  • 需要你做的:这是 Tier H,因为改到 ADR 路径,而且改动 4070 行,超过 3000 行人工合并线(其中删除 1954 行)。请 os-zhuang 审批。本 head 上已有 L1-b delta ACCEPT 6953718644 和席位 L2 delta PASS 6953827531。批准后由 已安装应用的动作启停:开关搬到 Studio 对应应用的动作条目上,设置里的「打包动作」页退休 #34724 卡线程按落地条款合入。

席位意见:建议批准。L2 一共四轮:

  • 首轮 PASS 6946280162;
  • d6b8707 上 FAIL 6948730442,M1 已修;
  • 8390b4f 上 PASS 6953374086,留下一条 S4;
  • 本 head 上 PASS 6953827531,S4 已关:换对象后 ?action= 会被丢掉,刷新或分享不会再落到旧动作上。

现在只剩 nit N6–N12。平台动作的处理严格按你的裁决 A,没有清理数据,也没有改门。

席位核对

  • 形态:Fixes #34724;草稿 PR,base main,+2116/−1954(4070 行)。受管命中:docs/adr/**(ADR-0146),另外超过了 3000 行线。
  • 前提实测:
    • 裁决 A(6944409840)落在 describeTurnedOffPackagedItem('action', { platform: true }) 和 ActionActivationProjection.disabledPackageOf 上。三处有钉子:packaged-item-turned-off.test.ts、action-activation.test.ts(去掉判断后变红)和 api-action-door-forward.dogfood.test.ts(真实环境的 sys_user / ban_user)。
    • 本 head 上 ui/packages/i18n/src/locales/** 和 main 逐字节相同,新文案都在懒加载的 studio 命名空间里,所以不吃 eager 预算。
  • 门禁:
    • 本 head 的 check-runs:61 success / 9 skipped / 0 failed。
    • 派生门禁 132 条。131 条一次通过;teardown 自测在浅克隆上 exit 3,取回 621a487 后 48 例全过。
    • 收窄臂 dogfood battery 跑在这个确切 head 上:exit 0,479 个文件通过、3 个跳过,4072 条测试通过、68 条跳过。
  • 接受的偏差:
    • 退休页面用过的 packagedAutomation.* console 文案暂时留着,已经没人读,等以后统一清理,好让 locales/* 保持逐字节不变。
    • FOLLOW-UPS.md 和 v18 的 release notes 是历史记录,不改。
    • L2 nit N6–N12 留在记录里。
  • 范围外去向:无新增。
  • 落地条款:Tier H,批准前 ⛔ 不 ready、不入队、不开自动合并。和草稿 fix(settings)!: offer the knowledge settings only where the knowledge service is mounted #34223(知识库不是当前重点:默认不加载知识库,Setup 的「知识库」页和「AI 与向量化」里的向量化一段只在挂了知识库服务时才出现 #33933)有两个文件冲突:connect-agent-both-halves-wire.pin.test.ts 和 platform-core.json。后落地的一方先合 main 再解冲突;如果本 PR 后落地,新 head 要补 L1 delta、席位 L2 delta(只是解冲突时补 Regen-provenance)和 battery,然后才能入队。

@objectstack-fleet objectstack-fleet Bot added the pm:awaiting-merge PR only: landing waits on the maintainer's own review and merge (SKILL.md 复核 ②); never on an issue label Nov 17, 2026
@os-zhuang
os-zhuang marked this pull request as ready for review November 17, 2026 21:55
@os-zhuang
os-zhuang added this pull request to the merge queue Nov 17, 2026
Merged via the queue into main with commit 6c1f9b3 Nov 17, 2026
79 of 80 checks passed
@os-zhuang
os-zhuang deleted the claude/project-thread-oq71f6 branch November 17, 2026 22:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation pm:awaiting-merge PR only: landing waits on the maintainer's own review and merge (SKILL.md 复核 ②); never on an issue size/xl tests tooling Fix lands in tooling, not a product package — enters pm:queue only with Unblocks: or a named surface

Projects

None yet

Development

Successfully merging this pull request may close these issues.

已安装应用的动作启停:开关搬到 Studio 对应应用的动作条目上,设置里的「打包动作」页退休

3 participants